package com.qiwo.api.controller;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.qiwo.common.utils.Result;
import com.qiwo.webshow.dao.CarDoDao;
import com.qiwo.webshow.domain.CarDo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * Copyright
 *
 * @Author:chenwenchao
 * @Date:2018/10/5 0005
 * Description:
 */
@RestController
public class ApiHomeController {
    @RequestMapping(path = "/401")
    @ResponseStatus(HttpStatus.UNAUTHORIZED)
    public Result<?> unauthorized() {
        return   Result.build(200, "认证失效", null);
    }


}
